//
// Created by dong on 2025/10/21.
//

#ifndef BASEC_SPAINT_H
#define BASEC_SPAINT_H
#include "demo101.h"

class SPaint
{
public:
    void setColor(SDL_Color color);
    void drawRect(const SDL_Rect& dst);
    void drawRect(int x,int y,int w,int h);
    void drawText(const string& text,const SDL_Rect& dst);
    void drawText(int x,int y,const string& text);
    void drawImg(const SDL_Rect& dst,const string& url);
    int width()const;
    int height()const;
protected:
    SDL_Color color={255,0,0,0};
    int w;
    int h;

};


#endif //BASEC_SPAINT_H